package com.project.petLossSystem.mapper;

import com.project.petLossSystem.po.IndexCarousel;
import com.project.petLossSystem.util.PageQueryUtil;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IndexCarouselMapper {
    int insertCarousel(@Param("carouselUrl") String carouselUrl, @Param("redirectUrl") String redirectUrl);

    List<IndexCarousel> carouselList(PageQueryUtil pageQueryUtil);

    int carouselCount(PageQueryUtil pageQueryUtil);

    IndexCarousel getCarouselById(Integer carouselId);

    int updateCarousel(IndexCarousel carousel);

    int simpleDeleteCarousels(@Param("carouselIds") Integer[] carouselIds);

    List<IndexCarousel> getCarousels();
}
